package cn.com.test.common.dto;

public class Dog {

	private int age;

	public Dog() {
	}

	public Dog(int age) {
		this.age = age;
	}

	@Override
	public boolean equals(Object o) {
		if (this == o) return true;
		if (o == null || getClass() != o.getClass()) return false;
		Dog dog = (Dog) o;
		return age == dog.age;
	}

	@Override
	public int hashCode() {
		return age;
	}
}
